package com.why.mapper;

import com.why.pojo.*;
import com.why.pojo.vo.ManageVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author new wei
 * @date 2022/5/16 9:32
 */
public interface ManageMapper {
    List<Manage> list(ManageVo vo);

    @Select("select * from t_venue")
    List<Venue> getVid();

    @Select("select * from t_type")
    List<Type> getTid();

    @Select("select * from t_place")
    List<Place> getPid();

    int addManage(Manage manage);

    void addDetail(@Param("list") List<Detail> detailList,@Param("mid") Integer mid);

    List listCount();
}
